@prefix: keqing-queryres;

.@{prefix}-panel {
    position: absolute;
    z-index: 100;
    width: 1100px;
    height: 700px;
    overflow: hidden;
    padding: 10px 20px;
    top: 50%;
    left: 50%;
    border-radius: 20px;
    transform: translate(-50%, -50%) scale(0.95);
    background-color: #2c2c2c;
    color: #fff;

    h3 {
        margin: 10px 0;
        text-align: center;
        font-size: 15px;
        font-weight: 700;
    }

    .@{prefix}-search {
        display: flex;
        margin-bottom: 20px;
        justify-content: flex-start;
        gap: 30px;

        .@{prefix}-smart-input {
            width: 250px;

            input {
                margin: 0;
                padding: 0;
                text-indent: 1em;
                width: 100%;
                height: 30px;
                color: #222222;
                border-radius: 15px;
                border: none;
                outline: none;
                font-size: 15px;
                background-color: #e8e8e8;
                box-shadow: 0 0 5px #c1a4a4;
            }

            ul {
                position: absolute;
                z-index: 101;
                margin: 0;
                padding: 0;
                width: 250px;
                box-sizing: border-box;
                border-radius: 10px;
                background-color: rgba(91, 90, 92, 0.3);

                li {
                    width: 100%;
                    height: 25px;
                    padding: 5px 0;
                    text-indent: 1em;
                    line-height: 15px;
                    list-style: none;
                    cursor: pointer;
                    border-bottom: 1px dashed #555555;

                    &:first-of-type {
                        margin-top: 10px;
                    }

                    &:last-of-type {
                        margin-bottom: 10px;
                    }

                    &:hover {
                        background-color: #4f4c52;
                    }
                }
            }
        }

        .@{prefix}-sshard {
            display: flex;

            span {
                height: 30px;
                line-height: 30px;
                text-align: center;
                color: #c7c7c7;
            }

            ul {
                margin: 0;
                padding: 0;
                display: flex;
                gap: 10px;
                justify-content: space-between;

                li {
                    padding: 0 10px;
                    height: 30px;
                    text-align: center;
                    line-height: 30px;
                    border-radius: 5px;
                    background-color: #cfc6d4;
                    color: #26222d;
                    list-style: none;
                    cursor: pointer;

                    &.active {
                        background-color: #ffcbb2;
                        color: #594f67;
                        box-shadow: 0 0 10px #ffcbb2;
                    }
                }
            }
        }

        button {
            margin-right: 40px;
            width: 64px;
            height: 30px;
            border: none;
            border-radius: 15px;
            color: #222222;
            background-color: #ccc5d3;
            cursor: pointer;
            transition: all 0.3s;

            &:hover {
                background-color: #ffcbb2;
            }
        }
    }

    .@{prefix}-table {
        font-size: 8px;
        .@{prefix}-row {
            margin-bottom: 4px;

            p {
                margin-bottom: 4px;
            }

            .@{prefix}-row-content {
                display: flex;
                margin-bottom: 4px;
            }

            .@{prefix}-row-item {
                display: flex;
                width: 90px;
                flex-wrap: wrap;

                span {
                    display: flex;
                    justify-content: flex-end;
                    width: 100%;
                }
            }
        }
    }
}
